package com.heima.test.job;


import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class HelloJod {
//    @Scheduled(cron = "0/5 * * * * ?")
    @XxlJob("hellojob")
    public ReturnT helloJob(String params){
        System.out.println("每个五秒 ， 我要吃饭" + LocalDateTime.now().toString());
       return ReturnT.SUCCESS;
    }
}
